package com.aaa.entity.mht;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 心理健康诊断测验(Mht)ʵ����
 *
 * @author makejava
 * @since 2022-08-29 20:09:21
 */
@Data
public class QuestionMht implements Serializable {
    private static final long serialVersionUID = 807157415631848017L;
    /**
     * 问题编号
     */
    private Integer id;

    private String question;

    private String optionTrue;

    private String optionFalse;

    private Integer type;

    private Integer status;

    //   JsonFormat在json字符串中返回带日期格式的数据
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    //从页面传值到controller的时候，自动解析字符串日期到date
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String updateBy;

    private Integer flag;


}

